﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace RedDragon.RBAC.API.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class SerilogController : ControllerBase
    {
        public readonly ILogger<SerilogController> logger;

        public SerilogController(ILogger<SerilogController> logger)
        {
            this.logger = logger?? throw new ArgumentNullException(nameof(logger));
        }

        [HttpGet]
        public void Get()
        {
            logger.LogInformation("测试1");
        }
    }
}
